package beanstao.util.id;

import java.util.Collection;
import java.util.Iterator;
import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;


public class IdQueue implements Queue<Id>
{
	private final Queue<Id> _IdQueue = new LinkedBlockingQueue<Id>();

	@Override
	public boolean addAll(Collection<? extends Id> c)
	{
		return _IdQueue.addAll(c);
	}

	@Override
	public void clear()
	{
		_IdQueue.clear();
	}

	@Override
	public boolean contains(Object o)
	{
		return _IdQueue.contains(o);
	}

	@Override
	public boolean containsAll(Collection<?> c)
	{
		return _IdQueue.containsAll(c);
	}

	@Override
	public boolean isEmpty()
	{
		return _IdQueue.isEmpty();
	}

	@Override
	public Iterator<Id> iterator()
	{
		return _IdQueue.iterator();
	}

	@Override
	public boolean remove(Object o)
	{
		return _IdQueue.remove(o);
	}

	@Override
	public boolean removeAll(Collection<?> c)
	{
		return _IdQueue.removeAll(c);
	}

	@Override
	public boolean retainAll(Collection<?> c)
	{
		return _IdQueue.retainAll(c);
	}

	@Override
	public int size()
	{
		return _IdQueue.size();
	}

	@Override
	public Object[] toArray()
	{
		return _IdQueue.toArray();
	}

	@Override
	public <T> T[] toArray(T[] a)
	{
		return _IdQueue.toArray(a);
	}

	@Override
	public boolean add(Id e)
	{
		return _IdQueue.add(e);
	}

	@Override
	public Id element()
	{
		return _IdQueue.element();
	}

	@Override
	public boolean offer(Id e)
	{
		return _IdQueue.offer(e);
	}

	@Override
	public Id peek()
	{
		return _IdQueue.peek();
	}

	@Override
	public Id poll()
	{
		return _IdQueue.poll();
	}

	@Override
	public Id remove()
	{
		return _IdQueue.remove();
	}

}
